package oracletojbpmwf.wizards;

import java.io.File;

import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;

public class ConfigureListComponentsWizardPage extends WizardPage {
	
	File wftFile;
	
	public ConfigureListComponentsWizardPage() {
		super("Workflow Components");
		setTitle("Workflow Components");
		setMessage("Workflow Components");
	}

	public void createControl(Composite parent) {
		Composite composite = createClientArea(parent);
		createLocateWFTFileGroup(composite);
		createSpace(composite);
		setControl(composite);
	}
	
	@SuppressWarnings("unused")
	private void update() {
		updatePages();
	}
	
	private void updatePages() {
		
	}
	
	private void createSpace(Composite composite) {
		Label label = new Label(composite, SWT.NONE);
		label.setLayoutData(new GridData(GridData.FILL_BOTH));
	}
	
	private void createLocateWFTFileGroup(Composite composite) {
		Group group = new Group(composite, SWT.NONE);
		group.setText("These are the workflow components present");
		group.setLayout(new GridLayout(3, false));
		GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
		gridData.verticalIndent = 5;
		group.setLayoutData(gridData);
	}
	
	private Composite createClientArea(Composite parent) {
		Composite composite= new Composite(parent, SWT.NONE);
		GridLayout layout= new GridLayout();
		layout.marginWidth= 0;
		layout.marginHeight= 0;
		layout.numColumns= 1;
		composite.setLayout(layout);
		return composite;
	}
}
